<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="format-detection" content="telephone=no" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <script src="../public/lobster/js/public.js"></script>
    <link rel="stylesheet" type="text/css" href="../public/lobster/icon/iconfont.css">
    <link rel="stylesheet" href="../public/lobster/css/public.css">
    <link rel="stylesheet" href="../public/lobster/css/shared.css?20170503">
    <link rel="stylesheet" href="../public/lobster/css/href.css?20170421">
    <link rel="stylesheet" href="../public/lobster/css/xxy.css">
    <script src="../public/lobster/js/lick.js"></script>
    <script src="../public/lobster/js/click.js"></script>
    <title>合并提货</title>
    <style>
    	.order {
		    background: #fff;
		}
		.order .log_head {
		   border-bottom: none;    
		}
    	.order .log_head>p {
		    padding-left: .3rem;
		}
	    .person_rt{
	   		float: right; 
		    width: 2rem;
		    height: 1.4rem;
		    border-top: 1px solid #eee;
		    padding: .45rem 0;
		}
		 .person_rt button {		
		    text-align: center;
		    height: .5rem;
		    line-height: .5rem;
		    border: none;
		    border-radius: 5px;
		    margin-right: .1rem;
		    padding: 0 .2rem;
		}
		 .person_rt .box{
			 flex-direction: row;
			 justify-content:center;
		}
		.order .detail-order {
		    padding: 0;
		}
		.detail-order ul,.sorts{
			width: 100%;
		}
		.detail-order .sorted li{
			width: 25%;
			float:left;
			height: .6rem;
			line-height: .6rem;
			text-align: center;
			color: #646464;
		}
		.detail-order  li:nth-child(odd){
			background: #e3e3e3;
		}
		.detail-order  li:nth-child(even){
			background: #ebebeb;
		}
		ul:after,.sortDetail:after,.sortDetail>div:after{
			content: "";
			height: 0;
			display: block;
			clear: both;
		}
		.sorts ul li{
			width: 25%;
			float:left;
			height: .8rem;
			line-height: .8rem;
			text-align: center;
			color: #646464;
		}
		.order  b {
		    padding:  .1rem;
		    border: 1px solid #ddd;
		    background: #ddd;
		    border-radius: 4px;
		    margin-top: -0.1rem;
		    font-weight: normal;
		}
		.detail-order .sorts:nth-child(odd) ul li:nth-child(even){
			background: #fff;
		}
		.detail-order .sorts:nth-child(odd) ul li:nth-child(odd){
			background: #f6f6f6;
		}
		.detail-order .sorts ul li:nth-child(1){
			color: #000;
		}
		.detail-order .sorts ul li:nth-child(2){
			color: #fc4630;
		}
		
		.sortDetail{
			width: 100%;
			background: #fff;
			border-top:.1rem solid #eee ;	
			display: none;			
		}
		.sortDetail>div{
			border-bottom:1px solid #eee;				
		}
		.order .hlog_infor {
		    width: 3.5rem;
		    height: 1.4rem;
		}
		.order .person_l {
		    width: 1.8rem;
		    float:left;
		    
		}
		.hlog_infor p{
			text-indent: 0;
		}
		.detail-order .hlog_infor .hlog-content{
		    display: -webkit-flex;
		    display: flex;
			justify-content:space-between;
			padding: 0 .05rem;
			padding-top: .05rem;
		}
		.order .person_log {
		    margin: .2rem;
		}
		.order .person-detail b {
		    margin-top: -0.13rem;
		}
		.order .person-detail span {
		    margin-right: .3rem;
		}
		
    </style>
</head>
<body class="order">
    <div class="logist_top">
	     
	     
	         <div class="no-content">
	         <img src="../public/lobster/images/mydd.png">
				
			</div>
	    
	    
	    
    </div>
    <!--弹窗-->
    <div class="morder" id="morder">
        <div class="popu">
            <div class="popu-title"><i class="iconfont icon-tishi"></i> 下单</div>
            <div class="popu-main">
                <h3>您是否确认提货？</h3>
            </div>
            <input type="hidden" id="tradeDetalId">
            <div class="btn">
                <a href="#" class="pay" onclick="coulse()">确 定</a>
                <a href="#" class="settle">取 消</a>
            </div>
        </div>
    </div>
 	<!--底部导航栏-->
 		<nav class="nav">
			<ul id="list">
				<li>
					<a href="index.html">
						<img src="../public/lobster/images/navbar01.png" alt="">
					</a>
				</li>
				<li>
					<a href="lotteryInfo.html">
						<img src="../public/lobster/images/navbar02.png" alt="">
					</a>
				</li>
				<li>
					<a href="center.html">
						<img src="../public/lobster/images/onnavbar03.png" alt="">
					</a>
				</li>
			</ul>
		</nav>
 
 
		
</body>
<script src="../public/lobster/js/jq-2.1.0.js"></script>
<script src="../public/lobster/js/xxy.js"></script>
<script>
    //        合并提货
    /* $('.pick').bind('click',function(){
        xxy.popup("自提","您确认要合并提货吗？","确认","取消");
    }) */
    function prevent(e){
		e.preventDefault();
	}
    function shou(obj){
        $(obj).find("i").toggleClass("icon-iconfontsanjiao1").toggleClass("icon-jinlingyingcaiwangtubiao21");
        $(obj).parent().siblings(".detail-order").toggle();
    }
    function orders(obj){
        $(obj).find("i").toggleClass("icon-iconfontsanjiao1").toggleClass("icon-jinlingyingcaiwangtubiao21");
        $(obj).parent().parent().parent().find(".sortDetail").toggle();
    }
    
    function enterpickUp(tradeDetalId){
    	//console.log('xx');
    	xxy.popup([
    		'你是否确认合并提货?'
    	].join(''),function(e){
    		if(e==0){
    			// 点击第一个按钮
    			coulse(tradeDetalId);
    		}else{
    			
    		}
    	});
    	//$("#tradeDetalId").val(tradeDetalId);
    	/*  $(window).scrollTop(0); */
    	/*$('#morder').css('display','block');
    	window.parent.document.body.addEventListener('touchmove',prevent,false);
        $('.settle').bind('click',function(){  // .settle为弹框取消键的class
        	window.parent.document.body.removeEventListener('touchmove',prevent,false);
            $('#morder').css('display','none');
        });
        */
        
    }
    
    function coulse(e){
    	var tradeDetalId = e;
    	window.location.href="/user/mergepickup?tid="+tradeDetalId;
    }
    
    function enterTakepickUp(tid){
    	$.ajax({
    		type:"POST",
    		url: "/user/enterMergeTakeGoods.do?v="+Math.random(),
    		data:{
    			"tid":tid
    		},
    		dataType:"json",
    		success:function(data){
    			if(data.success){
    				//alert(data.msg);
    				xxy.popup("提示",data.msg,"确认");
    				$('#xxone-popup-done').bind('click',function(){
    					window.location.reload();
    				  });
    				
    			}else{
    				//alert(data.msg);
    				xxy.popup("提示",data.msg,"确认");
    				$('#xxone-popup-done').bind('click',function(){
    					window.location.reload();
    				  });
    			
    			}
    			  
    		}	
    		
    	});
    	
    }
</script>
</html>